package de.jmda.mview.typeshape.relation;

import java.awt.Component;

import javax.lang.model.element.VariableElement;

import de.jmda.mview.typeshape.TypeShape;
import de.jmda.util.gui.awt.graphics.RelationEndpoint.Style;

public class RelationHasA
    extends Relation
{
	private TypeShape<?> typeShapeOwning;
	private TypeShape<?> typeShapeOwned;
	private VariableElement field;

	/**
	 * @param typeShapeOwning
	 * @param typeShapeOwned
	 * @param component
	 * @param field
	 */
	public RelationHasA(
			TypeShape<?> typeShapeOwning,
			TypeShape<?> typeShapeOwned, Component component, VariableElement field)
  {
	  super(typeShapeOwning, typeShapeOwned, component);

	  this.typeShapeOwning = typeShapeOwning;
	  this.typeShapeOwned = typeShapeOwned;
	  this.field = field;
  }

	@Override
  public Style getStyleSource()
  {
	  return Style.NONE;
  }

	@Override
  public Style getStyleTarget()
  {
	  return Style.OPEN;
  }
}